Fix popup with no space
authorJustin Burkett <justin@burkett.cc>
Tue, 5 Sep 2023 21:28:29 +0000 (17:28 -0400)
committerJustin Burkett <justin@burkett.cc>
Tue, 5 Sep 2023 21:28:29 +0000 (17:28 -0400)
Fixes #317

which-key.el

index 25f2397a9a8af291c7bf7ad9f53a843abb26fa49..d68942cf8b1deb310677f985c7752faa33f46600 100644 (file)
@@ -2682,7 +2682,9 @@ Finally, show the buffer."
                     (and which-key--god-mode-support-enabled
                          (bound-and-true-p god-local-mode)
                          (eq this-command 'god-mode-self-insert))
-                    (null this-command)))
+                    (null this-command))
+                (let ((max-dim (which-key--popup-max-dimensions)))
+                  (> (min (car-safe max-dim) (cdr-safe max-dim)) 0)))
            (when (and (not (equal prefix-keys (which-key--current-prefix)))
                       (or (null which-key-delay-functions)
                           (null (setq delay-time